"""index URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from . import response as rps
from django.conf.urls.static import static
from django.views.generic.base import RedirectView
from django.conf import settings
from django.conf.urls import handler403 as h403
from django.conf.urls import handler404 as h404
from django.conf.urls import handler500 as h500

h403 = rps.p403
h404 = rps.p404
h500 = rps.p500

urlpatterns = [
    url(r'^/whoisadmin/', admin.site.urls),
    url(r'^favicon.ico$',RedirectView.as_view(url=r'src/favicon.ico')),
    url(r'^aboutus$',rps.aboutus),
    url(r'^sponsors$',rps.sponsors),
    url(r'^diary$',rps.diary),
    url(r'^404$',rps.p404),
    url(r'^$', rps.index, name='home'),
]+static(settings.STATIC_URL,document_root=settings.STATIC_ROOT)
